package com.jzo2o.foundations.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.mapper.ServeMapper;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import com.jzo2o.foundations.service.IServeService;
import org.springframework.beans.factory.annotation.Autowired;

public class serveServiceImpl extends ServiceImpl<ServeMapper, Serve> implements IServeService {
    @Autowired
    private  ServeMapper serveMapper;

    @Override
    public PageResult<ServeResDTO> findByPage(ServePageQueryReqDTO servePageQueryReq) {
         PageResult<ServeResDTO> pageResult = serveMapper.findByPage(servePageQueryReq);
        return pageResult;
    }
}
